﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace House_Control
{
    //This class will manage the cameras and will deal with starting/stopping recording.
    class Survelliance
    {
        public Boolean DVROn = false;
        int noCameras;
        public List<Camera> cameras = new List<Camera>();
        public void addCamera(int roomNo)
        {
            cameras.Add(new Camera(noCameras, roomNo));
            noCameras++;
        }
        public void start()
        {
            DVROn = true;
            for (int i = 0; i < noCameras; i++)
                cameras[i].enable();
        }
        public void stop()
        {
            DVROn = false;
            for (int i = 0; i < noCameras; i++)
                cameras[i].disable();
        }
        public Boolean isOn()
        {
            return DVROn;
        }

    }
}
